package com.flycent.fanbao.net;

import com.flycent.fanbao.Constants;

/**
 * @author fbl
 *  为volley请求配置Uri路径
 */
public class RequestRoute {

	/**
	 *  快递查询uri
	 * @param postid
	 * @param format
	 * @param authkey
	 * @return String 快递查询的uri
	 */
	public  String getExpressStr(String postid,String format,String authkey){
		String query = null;
		try {
			query = String.format("?postid=%1$s&format=%2$s&authkey=%3$s",postid, format, authkey);//URLEncoder.encode(password, UTF8_FORMAT))
		} catch (Exception e) {
			e.printStackTrace();
		}
		String path = Constants.ExpressInfoIP + query;
		return path;	
	}


}
